﻿using UnityEngine;
using System.Collections;

public class NewBehaviourScript : MonoBehaviour
{
    Animation anim;

    void Awake()
    {
        transform.Set
        anim = GetComponent<Animation>();
    }
    void OnGUI()
    {
        if(GUI.Button(new Rect(0,100,100,100),"Idle"))
        {
            anim.Play("Idel");
        }
        if (GUI.Button(new Rect(0, 200, 100, 100), "Walke"))
        {
            anim.Play("Idel");
        }
        if (GUI.Button(new Rect(0, 300, 100, 100), "Run"))
        {
            anim.Play("Idel");
        }
        if (GUI.Button(new Rect(0, 400, 100, 100), "Attack01"))
        {
            anim.Play("Idel");
        }
    }

}
